/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __0B201EED_044A_4AB6_8E1F_84D19E4675B6__
#define __0B201EED_044A_4AB6_8E1F_84D19E4675B6__

#include "declare.h"

namespace xos_box
{

    /////////////////////////////////////////////////////////////////////////////////
    // 
    // i_box_mgr
    // 
    class i_box_mgr : public xos::i_release
    {
    protected:
        virtual ~i_box_mgr(){}

    public:
        // 创建对象
        // 
        // need release
        virtual i_all_done_test * all_done_test() = 0;

        virtual i_big_buf * big_buf() = 0;
        virtual i_buf * buf() = 0;
        virtual i_msg * msg() = 0;

        virtual i_wstring * wstring() = 0;
        virtual i_string * string() = 0;

        virtual i_lock_free_queue * queue() = 0;
        virtual i_list * list() = 0;

        virtual i_int_property * get_int_prop() = 0;
        virtual i_str_property * get_str_prop() = 0;
        virtual i_variant * vt() = 0;

        virtual i_lock_obj * lobj() = 0;
        virtual i_lock_num * lnum() = 0;

        virtual i_callback * callback() = 0;
        virtual i_threads * threads() = 0;

        // need not release
        virtual i_engine * engine() = 0;
        virtual i_serial * serial() = 0;
        virtual i_heart * heart() = 0;

    };

    /////////////////////////////////////////////////////////////////////////////////
    // 
    // export function
    // 
    typedef int ( * f_create )( xos_container::i_container * pContainer, i_box_mgr ** ppv );


} // xos_box

#endif // __0B201EED_044A_4AB6_8E1F_84D19E4675B6__
